Microsoft toolbox activities
The Microsoft Toolbox includes statements that help structure your workflow.
The following groups are displayed in the Microsoft Toolbox panel:
The activities available in the Control Flow group are described in the following table.
| Activity | Does this... |
|---|---|
| DoWhile | Executes the activity contained within the body until the specified condition is met. |
| Flowchart | Allows the creation of a workflow containing flownode objects (for example: FlowDecision) and links. |
| FlowDecision | Produces one of two possible outcomes from a flownode. |
| ForEachWithBodyFactory<T> | Creates a new ForEach<T> activity for the activity contained in the body. |
| If |
Branches actions that can be used to specify a condition where the outcome is either true or false. Important.Refer to the If activity description for more information.
|
| Parallel | Executes all activities contained in the body simultaneously. |
| ParallelForEachWithBodyFactory<T> | Creates a new ParallelForEach<T> activity for the activity contained in the body. |
| Sequence |
Containers for a series of events within an activity. Important.Refer to the Sequence activity description for more information.
|
| Switch<T> | Selects an activity to execute, based on the value of the expression. |
| While | Executes the activity contained in the body while the condition is true. |
The activities available in the Runtime group are described in the following table.
| Activity | Does this... |
|---|---|
| Assign |
Assigns a value to a variable. Important.Refer to the Assign activity description for more information.
|
| Delay | Creates a timed delay. |
| InvokeMethod | Calls a method for a specified object or type. |
| TerminateWorkflow | Terminates the workflow. |
| WriteLine | Writes specified text to a TextWriter. |
The activities available in the Collection group are described in the following table.
| Activity | Does this... |
|---|---|
| AddToCollection<T> | Adds an item to a collection class. |
| ClearCollection<T> | Clears items from a collection class. |
| ExistsInCollection<T> | Confirms whether an item is included within a collection class. |
| RemoveFromCollecton<T> | Removes an item from a collection. |
The activities available in the Error Handling group are described in the following table.
| Activity | Does this... |
|---|---|
| Rethrow |
Reproduces a previously thrown exception. Important.The Rethrow activity must be the child of a Catch handler or a TryCatch activity.
|
| Throw | Produces an exception. |
| TryCatch |
Handles errors when an exception occurs within a workflow. Important.Refer to the TryCatch activity description for more information.
|